<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>
<head>
	<title><fmt:message key="feedbackList.title"/></title>
</head>
<div class="position"><fmt:message key="your.position"/><a href="${ctxPath}/index.html"><fmt:message key="menu.main"/></a>&gt; <fmt:message key="feedbackList.feedbackMsg"/></div>
<div class="line10"></div>

<div class="wrap_04">
	<div class="tab_04">
		<ul class="content clearfix">
			<li><a class="curr"><fmt:message key="feedbackList.all"/>(${sc.totalCount})</a></li>
		</ul>
	</div>
	<div class="feedback_wrap">
		<form method="get" id="feedbackListForm">
			<c:forEach items="${feedbackList}" var="feedback">
				<div class="item">
					<dl class="ask clearfix">
						<dt><fmt:message key="feedback.message"/>：</dt>
						<dd style="width:650px;">${feedback.message}</dd>
						<dd class="writer">
							${feedback.feedbackUserArea} ${feedback.feedbackUserName}<br/> 
							<span class="time"><fmt:formatDate value="${feedback.createTime}" pattern="yyyy-MM-dd HH:mm" /></span>
						</dd>
					</dl>
					<customer:getFeedbackReplys feedbackId="${feedback.feedbackId}" returnReplyListName="replyList"/>
					<c:forEach items="${replyList}" var="reply" varStatus="replyStatus">
						<dl class="answer clearfix">
							<dt><fmt:message key="feedback.reply"/>：</dt><dd style="width:650px;">${reply.message}</dd>
							<dd class="time"><fmt:formatDate value="${reply.createTime}" pattern="yyyy-MM-dd HH:mm" /></dd>
						</dl>
					</c:forEach>
					<c:if test="${empty replyList}">
						<dl class="answer clearfix">
							<dt><fmt:message key="feedback.reply.notYet"/>。</dt>
						</dl>
					</c:if>
				</div>
			</c:forEach>
			<c:if test="${empty feedbackList}">
				<div class="others_info">
					<fmt:message key="feedbackList.noFeedback"/>,
					<a href="#addFeedbackForm" ><fmt:message key="feedbackList.addFeedbackRightNow"/></a>
				</div>
			</c:if>
			<%--------保存查询条件 -------%>
			<%@include file="include/feedbackSearchCriteriaStorage.jspf"%>
			<div class="page_bottom clearfix">
				<paging:linkPagingBottom/>
			</div>
		</form>	
	</div>
	<%@ include file="feedbackForm.jsp"%>
</div>		

		

<c:set var="probizJs_validation" value="true" scope="request"/>	
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/customer/feedback.js?rs=${appConfig.rs}" defer></script>
